#include "Blocks/FlowerBlock.h"

using namespace PocketSurvival::Engine;

namespace PocketSurvival
{
    FlowerBlock::FlowerBlock()
    {
        addInheritance(this);
    }
    
    void FlowerBlock::getDropValues(int32_t oldValue, int32_t newValue, int32_t toolLevel, std::vector<BlockDropValue> &dropValues)
    {
        int32_t data = Terrain::ExtractData(oldValue);
        if(GetIsSmall(data) == false)
        {
            dropValues.push_back(BlockDropValue
            { 
                Terrain::MakeBlockValue(Terrain::ExtractContents(oldValue), 0, data), 
                1 
            });
        }
    }

} // namespace PocketSurvival
